-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Default to standard retry #3236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: version-3
Are you sure you want to change the base?
Conversation
Detected 1 possible performance regressions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
Co-authored-by: Juli Tera <57973151+jterapin@users.noreply.github.com>
gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/plugins/extended_retries.rb
Outdated
Show resolved
Hide resolved
|
||
option( | ||
:max_attempts, | ||
default: 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a reason why it was 10
attempts? I was curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not certain. Probably because of throttling and can be loss of data.
gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/plugins/extended_retries.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Juli Tera <57973151+jterapin@users.noreply.github.com>
Sets the default retry strategy to standard.
This is a mild breaking change, rendering some config values useless (since standard doesn't have too many configurable options).
DynamoDB extended retries will include a new default of 10 retries but no configurable jitter/backoff policy unless configured back to legacy.
Other changes to the retry plugin are rubocop related.
For any disruptions (to anyone viewing this PR) please set your mode with
Aws.config[:retry_mode] = 'legacy'